package com.helmlabs.grouper.core.util;

import java.io.File;
import java.io.IOException;

import com.helmlabs.grouper.core.Constants;

public class HomeFolderUtil {
	
	public static File getFile(String relativePath, boolean createPath) throws IOException{
		File file = new File(Constants.GROUPER_ROOT_FOLDER_PATH + relativePath);
		if (!file.exists() && createPath){
			file.mkdirs();
		}
		return file;
	}

}
